package com.ylr.user.framework.feign.client;

import com.ylr.user.framework.feign.fallback.YuUserMessageClientFallback;
import com.ylr.user.common.bo.user_message.UserMessageBo;
import com.ylr.base.common.tool.Result;
import com.ylr.user.framework.feign.YuUserMessageBaseClient;
import com.ylr.user.framework.feign.configuration.YuClientConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-06-08 11:56:55
 * className: YuUserMessageClient
 * version: 1.0
 * description:
 */
@FeignClient(value = "ylr-user", contextId = "YuUserMessageClient", path = "/api/user-message",
        fallback = YuUserMessageClientFallback.class, configuration = YuClientConfig.class)
public interface YuUserMessageClient extends YuUserMessageBaseClient {

    /**
     * 保存用户消息接口
     * @param userMessageBo 用户消息
     */
    @PostMapping("/save")
    Result<Object> saveUserMessage(@RequestBody UserMessageBo userMessageBo);

}
